#include<stdio.h>

int str_contain(char* src, char* dst)
{
    int hash = 0;
    int i = 0;
    while(src[i] != '\0') {
        hash |= (1 << (src[i] - 'A')); 
        printf("0x%x", hash);
        i++;
    }

    i = 0;
    while(dst[i] != '\0') {
        if((hash & (1 << (dst[i] - 'A'))) == 0) {
            return 0;
        }
        i++;
    }

    return 1;
}

void main(int argc, char** argv) {
    char* src1 = argv[1];//"ABDFFFA";
    char* dst1 = argv[2];//"ABDF";
    printf("%s %s %s\n", src1, str_contain(src1, dst1) == 1 ? "contains" : "do not contains", dst1);
}
